<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>驾校查询</title>
    <script type="text/javascript" src="js/jquery-1.8.3.js"></script>
  </head>
  
  <body>
        <h1 align="center">驾校查询</h1>
        <form action="" align="center" >
          城区:<s:select name="id" list="clist" listKey="id" listValue="name" headerKey="0" headerValue="请选择"/><input type="submit" value="查询"/>
        </form>
        <table align="center" border="1" cellspacing="0" cellpadding="0" width="500">
          <tr>
            <td>驾校名称</td>
            <td>所在城区</td>
            <td>所在地址</td>
            <td>联系电话</td>
            <td>操作</td>
          </tr>
          <s:iterator value="dlist" status="st">
              <s:if test="#st.even == true">
               <tr bgcolor="pink"> 
              </s:if>
             <td><s:property value="name"/></td>
             <td><s:property value="cityarea.name"/></td>
             <td><s:property value="address"/></td>
             <td><s:property value="phone"/></td>
             <td><a href="ds_update.action?id=<s:property value="id"/>">修改</a></td>
              </tr>
          </s:iterator>
        </table>
        
  </body>
</html>
